<?php
echo '<label for="type">Contrato</label><br /><br />';
echo $this->Form->select('Drive][contract_id',$contracts, array('id' => 'contractse','style' => 'width: 100%'));
echo '</div>';
echo '<div id="info">';
echo '</div>'
?>

<?php 
	$this->Js->get("#contractse");
	echo $this->Js->event('change', $this->Js->request(
	 			array('action' => 'getInfo', 'controller' => 'Contracts'),
	 			array('method' => 'post',
	            'type' => 'json',
	            'async' => true,
	            'update' => '#info',
	            'dataExpression' => true,
	            'evalScripts' => true,
	            'data' => $this->Js->serializeForm(array('isForm' => true, 'inline' => true)))
	 			));
	echo $this->Js->writeBuffer();
?>